package com.dianping.cat.home.storage.entity;

import com.dianping.cat.home.storage.BaseEntity;
import com.dianping.cat.home.storage.IVisitor;
import java.util.ArrayList;
import java.util.List;

public class Link
  extends BaseEntity<Link>
{
  private String m_url;
/* 12 */   private List<String> m_pars = new ArrayList();






/* 19 */   public void accept(IVisitor visitor) { visitor.visitLink(this); }


  public Link addPar(String par) {
/* 23 */     this.m_pars.add(par);
/* 24 */     return this;
  }


  public boolean equals(Object obj) {
/* 29 */     if (obj instanceof Link) {
/* 30 */       Link _o = (Link)obj;

/* 32 */       if (!equals(getUrl(), _o.getUrl())) {
/* 33 */         return false;
      }

/* 36 */       if (!equals(getPars(), _o.getPars())) {
/* 37 */         return false;
      }


/* 41 */       return true;
    }

/* 44 */     return false;
  }


/* 48 */   public List<String> getPars() { return this.m_pars; }



/* 52 */   public String getUrl() { return this.m_url; }



  public int hashCode() {
/* 57 */     int hash = 0;

/* 59 */     hash = hash * 31 + ((this.m_url == null) ? 0 : this.m_url.hashCode());
/* 60 */     for (String e : this.m_pars) {
/* 61 */       hash = hash * 31 + ((e == null) ? 0 : e.hashCode());
    }


/* 65 */     return hash;
  }


  public void mergeAttributes(Link other) {
/* 70 */     if (other.getUrl() != null) {
/* 71 */       this.m_url = other.getUrl();
    }
  }

  public Link setUrl(String url) {
/* 76 */     this.m_url = url;
/* 77 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/storage/entity/Link.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */